#include "user.h"

User::User()
{
}

User::User(QString name)
{
    this->_name = name;
    //ids = new QList<int>;
    ids.clear();
}

QString User::name()
{
    return this->_name;
}

QList<int> User::cards()
{
    return this->ids;
}

void User::add_card(int id)
{
    ids.append(id);
}

void User::release_cards()
{
    this->ids.clear();
}
